﻿package Message.Login
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ILoginPrxHelper extends RMIProxyObject implements ILoginPrx
    {
        public static const NAME:String = "Message.Login.ILogin";

        public function ILoginPrxHelper()
        {
            name = "ILogin";
        }

        public function createFirstRole_async(login:AMI_ILogin_createFirstRole, role:SFirstRole) : void
        {
            var context:Context = makeContext(session);
            var operation:SRMICall = makeCall("createFirstRole");
            var stream:SerializeStream = new SerializeStream();
			role.__write(stream);
            Outgoing.invokeAsync(context, operation, stream, login);
        }

        public function login_async(ilogin:AMI_ILogin_login, slogin:SLogin) : void
        {
			var context:Context = makeContext(session);
			var operation:SRMICall = makeCall("login");
			var stream:SerializeStream = new SerializeStream();
			slogin.__write(stream);
            Outgoing.invokeAsync(context, operation, stream, ilogin);
        }
    }
}
